package cn.elead.it.template.emuns;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * <p>
 * 用户状态枚举
 * </p>
 *
 * @author luopeng
 */
public enum DemoStatusEnum implements IEnum<Integer> {

	/** 状态;1:在职；2:离职 */
	DISABLE(1,"在职"), NORMAL(2,"离职");

	@EnumValue
	private final int value;
	
	private final String name;

	DemoStatusEnum(final int value, final String name) {
		this.value = value;
		this.name = name;
	}

	@Override
	@JsonValue
	public Integer getValue() {
		return this.value;
	}
	
	public String getName() {
		return this.name;
	}
}
